package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.Equipment;

/**
 * 器材Mapper接口
 * 
 * @author ruoyi
 * @date 2022-12-04
 */
public interface EquipmentMapper 
{
    /**
     * 查询器材
     * 
     * @param id 器材主键
     * @return 器材
     */
    public Equipment selectEquipmentById(Long id);

    /**
     * 查询器材列表
     * 
     * @param equipment 器材
     * @return 器材集合
     */
    public List<Equipment> selectEquipmentList(Equipment equipment);

    /**
     * 新增器材
     * 
     * @param equipment 器材
     * @return 结果
     */
    public int insertEquipment(Equipment equipment);

    /**
     * 修改器材
     * 
     * @param equipment 器材
     * @return 结果
     */
    public int updateEquipment(Equipment equipment);

    /**
     * 删除器材
     * 
     * @param id 器材主键
     * @return 结果
     */
    public int deleteEquipmentById(Long id);

    /**
     * 批量删除器材
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEquipmentByIds(Long[] ids);
}
